package diuf.diva.hephaistk.fusion.model;

import java.util.ArrayList;
import java.util.List;

public class ContextHL {
	
	private String name = null;
	private List<TransitionHL> transitions = null;
	
	
	public ContextHL(String name){
		this.name = name;
		transitions = new ArrayList<TransitionHL>();
	}
	
	
	
	public void addTransition(TransitionHL trans){
		transitions.add(trans);
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public List<TransitionHL> getTransitions() {
		return transitions;
	}
	public void setTransitions(List<TransitionHL> transitions) {
		this.transitions = transitions;
	}
	
	
	public String toString(){
		return "NAME: " + name + " \n NUM TRAN: " + transitions.size() + " \n " + transitions.toString() + "\n\n" ;
	}
	
	
	
}
